x86/pv: Provide custom cpumasks for PV domains
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 26 Nov 2015 18:56:43 +0000 (18:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:54:39 +0000 (21:54 +0100)
commit9801d13d6bc4bf83ef5efdd9c68c26f164d15fff
tree300c95bbfb01996d040551c054cfe5572f826e6e
parent5ab9564c6fa10b878c3404d0725b6f399981e2bf
x86/pv: Provide custom cpumasks for PV domains

And use them in preference to cpumask_defaults on context switch.  HVM domains
must not be masked (to avoid interfering with cpuid calls within the guest),
so always lazily context switch to the host default.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/intel.c
xen/arch/x86/domain.c
xen/include/asm-x86/domain.h